Expressions
An
expression
is any series of AppleScript words that has a value. You use expressions to represent or derive values in scripts. When AppleScript encounters an expression, it converts it into an equivalent value. This is known as
evaluation
.
The simplest kinds of expressions, called literal expressions, are representations of values in scripts. For more information on literal expressions, including examples, see
Values and Constants
This chapter describes expressions in the following sections:
-
Results of Expressions
describes how you can use the Script Editor to evaluate an expression and display its value.
-
Variables
describes how to create and use variables. Topics covered include reference variables, data sharing, the scope of variables, and the predefined variables available in AppleScript.
-
Script Properties
describes script properties, which are named containers for values that you can use in the same way you use variables.
-
AppleScript Properties
describes global properties of AppleScript, which you can use in any script. Some properties act as constants, but you can modify AppleScript's Text Item Delimiters, which AppleScript uses in performing various string operations.
-
Reference Expressions
describes compound expressions that refer to objects in applications, and which you can use to represent values in scripts.
-
Operations
describes expressions that use operators (such as addition or concatenation) to derive values from other values.
© 1999 Apple Computer, Inc. – (Last Updated 21 May 99)